package com.dx.architectureddd.domain;

import com.dx.architectureddd.common.enums.NodeNextType;
import lombok.Data;

import java.util.HashMap;
import java.util.Map;

/**
 * 下一个节点（规则执行引擎）
 *
 * @author xin.deng
 * @date 2023/10/05
 */
@Data
public class NextNode {
    private NodeNextType nodeNextType;

    private String msg;

    private Map<String, Object> outPut;

    public NextNode(NodeNextType nodeNextType) {
        this.nodeNextType = nodeNextType;
    }

    public Map<String, Object> getOutPut() {
        if (outPut == null) {
            outPut = new HashMap<>();
        }
        return outPut;
    }
}
